import Vue from 'vue';
import Router from 'vue-router';
import Home from '../view/Home.vue';
import Edit from '../view/Edit.vue';

Vue.use(Router);

const router = new Router({
    // mode: 'history',
    routes: [
        {
            path: '/',
            name: 'HomePage',
            component: Home
        },
        {
            path: '/edit',
            name: 'Edit',
            component: Edit
        },
        {
            path: '*',
            redirect: '/'
        }
    ]
});

export default router;
